package com.zxq.factory.encoder.impl;

import com.zxq.factory.encoder.IFieldEncoder;
import com.zxq.memory.ByteArrayPools;

public class ByteFieldEncoder implements IFieldEncoder<Byte> {


    @Override
    public byte[] encoder(Byte value, int len) {
        byte[] buff = ByteArrayPools.getBytes(1 + "");
        buff[0] = value;
        return buff;
    }
}
